package org.moyu.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.http.HttpStatus;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class ErrorResponseData  extends ResponseData{

    public ErrorResponseData(){
        super(HttpStatus.BAD_REQUEST.value(), false, "请求失败", null);
    }

    public ErrorResponseData(Object data){
        super(HttpStatus.BAD_REQUEST.value(), false, "请求失败", data);
    }

    public ErrorResponseData(String message){
        super(HttpStatus.BAD_REQUEST.value(), false, message, null);
    }

    public ErrorResponseData(Integer code, Object data){
        super(code, false, "请求失败", data);
    }

    public ErrorResponseData(String message, Object data){
        super(HttpStatus.BAD_REQUEST.value(), false, message, data);
    }

    public ErrorResponseData(Integer code, String message, Object data){
        super(code, false, message, data);
    }
}
